package com.grass.p019lv.databinding;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.databinding.adapters.TextViewBindingAdapter;
import com.androidsa.bttsddka.R;
import com.androidx.p013lv.base.view.StatusControlLayout;
import com.grass.p019lv.activity.MineDownLoadVideoActivity;
import com.grass.p019lv.activity.ReplyCommentActivity;
import com.grass.p019lv.generated.callback.OnClickListener;
import com.yanzhenjie.recyclerview.SwipeRecyclerView;

/* renamed from: com.grass.lv.databinding.a */
public class ActivityMineDownLoadVideoLayoutBindingImpl extends ActivityMineDownLoadVideoLayoutBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback63;
    private final View.OnClickListener mCallback64;
    private final View.OnClickListener mCallback65;
    private final View.OnClickListener mCallback66;
    private long mDirtyFlags;
    private final LinearLayout mboundView0;
    private final TextView mboundView1;
    private final TextView mboundView2;
    private final View mboundView5;
    private final LinearLayout mboundView6;
    private final TextView mboundView7;
    private final TextView mboundView8;

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        return false;
    }

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(R.id.toolbar, 9);
    }

    public ActivityMineDownLoadVideoLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 10, sIncludes, sViewsWithIds));
    }

    private ActivityMineDownLoadVideoLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 0, (SwipeRecyclerView) objArr[3], (StatusControlLayout) objArr[4], (Toolbar) objArr[9]);
        this.mDirtyFlags = -1;
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.mboundView0 = linearLayout;
        linearLayout.setTag(null);
        TextView textView = (TextView) objArr[1];
        this.mboundView1 = textView;
        textView.setTag(null);
        TextView textView2 = (TextView) objArr[2];
        this.mboundView2 = textView2;
        textView2.setTag(null);
        View view2 = (View) objArr[5];
        this.mboundView5 = view2;
        view2.setTag(null);
        LinearLayout linearLayout2 = (LinearLayout) objArr[6];
        this.mboundView6 = linearLayout2;
        linearLayout2.setTag(null);
        TextView textView3 = (TextView) objArr[7];
        this.mboundView7 = textView3;
        textView3.setTag(null);
        TextView textView4 = (TextView) objArr[8];
        this.mboundView8 = textView4;
        textView4.setTag(null);
        this.recycler.setTag(null);
        this.statusLayout.setTag(null);
        setRootTag(view);
        this.mCallback65 = new OnClickListener(this, 3);
        this.mCallback64 = new OnClickListener(this, 2);
        this.mCallback66 = new OnClickListener(this, 4);
        this.mCallback63 = new OnClickListener(this, 1);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 32;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (170 == i) {
            setStatus((Integer) obj);
        } else if (164 == i) {
            setSelectNum((Integer) obj);
        } else if (171 == i) {
            setStatusRefresh((Integer) obj);
        } else if (34 == i) {
            setClick((MineDownLoadVideoActivity.OnClick) obj);
        } else if (96 != i) {
            return false;
        } else {
            setIsEdit((Boolean) obj);
        }
        return true;
    }

    @Override // com.grass.p019lv.databinding.ActivityMineDownLoadVideoLayoutBinding
    public void setStatus(Integer num) {
        this.mStatus = num;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(170);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.ActivityMineDownLoadVideoLayoutBinding
    public void setSelectNum(Integer num) {
        this.mSelectNum = num;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(164);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.ActivityMineDownLoadVideoLayoutBinding
    public void setStatusRefresh(Integer num) {
        this.mStatusRefresh = num;
    }

    @Override // com.grass.p019lv.databinding.ActivityMineDownLoadVideoLayoutBinding
    public void setClick(MineDownLoadVideoActivity.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 8;
        }
        notifyPropertyChanged(34);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.ActivityMineDownLoadVideoLayoutBinding
    public void setIsEdit(Boolean bool) {
        this.mIsEdit = bool;
        synchronized (this) {
            this.mDirtyFlags |= 16;
        }
        notifyPropertyChanged(96);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        boolean z;
        String str;
        boolean z2;
        String str2;
        long j2;
        long j3;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        Integer num = this.mStatus;
        Integer num2 = this.mSelectNum;
        MineDownLoadVideoActivity.OnClick onClick = this.mClick;
        Boolean bool = this.mIsEdit;
        int i = 0;
        int safeUnbox = (j & 33) != 0 ? ViewDataBinding.safeUnbox(num) : 0;
        long j4 = j & 34;
        if (j4 != 0) {
            z = ViewDataBinding.safeUnbox(num2) == 0;
            if (j4 != 0) {
                j = z ? j | 2048 : j | 1024;
            }
        } else {
            z = false;
        }
        long j5 = j & 48;
        String str3 = null;
        if (j5 != 0) {
            z2 = ViewDataBinding.safeUnbox(bool);
            if (j5 != 0) {
                if (z2) {
                    j3 = j | 128;
                    j2 = 512;
                } else {
                    j3 = j | 64;
                    j2 = 256;
                }
                j = j3 | j2;
            }
            if (!z2) {
                i = 8;
            }
            str = z2 ? "取消" : "編輯";
        } else {
            str = null;
            z2 = false;
        }
        if ((1024 & j) != 0) {
            str2 = String.valueOf(("刪除（" + num2) + ")");
        } else {
            str2 = null;
        }
        long j6 = 34 & j;
        if (j6 != 0) {
            if (z) {
                str2 = "刪除";
            }
            str3 = str2;
        }
        if ((32 & j) != 0) {
            this.mboundView1.setOnClickListener(this.mCallback63);
            this.mboundView2.setOnClickListener(this.mCallback64);
            this.mboundView7.setOnClickListener(this.mCallback65);
            this.mboundView8.setOnClickListener(this.mCallback66);
        }
        if ((48 & j) != 0) {
            TextViewBindingAdapter.setText(this.mboundView2, str);
            this.mboundView5.setVisibility(i);
            this.mboundView6.setVisibility(i);
            MineDownLoadVideoActivity.isSwipeMenuList(this.recycler, z2);
        }
        if (j6 != 0) {
            TextViewBindingAdapter.setText(this.mboundView8, str3);
        }
        if ((j & 33) != 0) {
            ReplyCommentActivity.showStatusView(this.statusLayout, safeUnbox);
        }
    }

    @Override // com.grass.p019lv.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = false;
        if (i == 1) {
            MineDownLoadVideoActivity.OnClick onClick = this.mClick;
            if (onClick != null) {
                z = true;
            }
            if (z) {
                onClick.btnBack();
            }
        } else if (i == 2) {
            MineDownLoadVideoActivity.OnClick onClick2 = this.mClick;
            if (onClick2 != null) {
                z = true;
            }
            if (z) {
                onClick2.editCollect();
            }
        } else if (i == 3) {
            MineDownLoadVideoActivity.OnClick onClick3 = this.mClick;
            if (onClick3 != null) {
                z = true;
            }
            if (z) {
                onClick3.allSelectedBtn();
            }
        } else if (i == 4) {
            MineDownLoadVideoActivity.OnClick onClick4 = this.mClick;
            if (onClick4 != null) {
                z = true;
            }
            if (z) {
                onClick4.deleteBtn();
            }
        }
    }
}
